package com.crape.topic.dao;

import java.util.List;

import com.crape.common.exceptions.DAOException;
import com.crape.common.model.Article;
import com.crape.common.model.ArticleIndex;

public interface IArticleIndexDAO {

	ArticleIndex getArticleIndexByArticleid(Long articleid) throws DAOException;

	void insertArticleIndex(ArticleIndex articleIndex) throws DAOException;

	void updateArticleIndex(ArticleIndex articleIndex) throws DAOException;

	List<Article> getIndexArticles(Long accountid, Long articleid, Integer indexType, Integer status, Integer startIndex, Integer pageSize) throws DAOException;

	Long countIndexArticles(Long accountid, Long articleid, Integer indexType, Integer status) throws DAOException;

	List<Article> getIndexShowArticles(Integer indexType, Integer showNum) throws DAOException;

}
